-
Notifications
You must be signed in to change notification settings - Fork 644
Add test for "Regression in v3.8.x PopulateFeedBacklog depends on un-started InboxReader" #3847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…started InboxReader"
968ebdc
to
4f688d7
Compare
builder.L2Info.GenerateAccount(userAccount) | ||
|
||
// Guarantees that nodes will rely only on the feed to receive messages | ||
builder.nodeConfig.BatchPoster.Enable = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as we recently discovered, this will turn batch poster everywhere and should be adapted to #3829; bringing @ganeshvanahalli attention in case this PR will get merged first
@KolbyML I'm afraid that the |
@pmikolajczyk41 ready for another look 🫡 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's really great to have steps for reproduction, but (apologies for nitpicking), it'd be more straightforward to make old-add-regression-test
branch differ from the actual branch by the fix we are testing (i.e., #3812); currently these branches have much more differences (KolbyML/nitro@new-add-regression-test...old-add-regresion-test and KolbyML/nitro@old-add-regresion-test...new-add-regression-test)
I run the test with and without fix and I confirm that the test does its job :D
good to know I will keep that in mind for future PR's 🫡
🥳 |
Fixes NIT-4014
Problem
We fixed NIT-3997 "Regression in v3.8.x PopulateFeedBacklog depends on un-started InboxReader", but want to add a regression test that the fix did work, and a similar bug doesn't happen again
The fix was done in this PR
Solution
I added a regression test it passes on master (i.e. this branch), but fails before the original fix was merged.
To replicate this test failing more the fix was in place you can checkout this branch https://github.com/KolbyML/nitro/tree/old-add-regresion-test
Then run
make go-test
, cancel it after the test setup completes aka tests start running, then rungo test ./system_tests -run TestRegressionInPopulateFeedBacklog -v -count=1 -timeout=10m
and it will fail with error message